package com.dlsp.hotel.mapper;

/**
 * @author:fanxh
 * @date: 2021/12/31/16:32
 * 客户的mapper
 */

import com.dlsp.hotel.bean.Account;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface AccountMapper {
     int add(Account account);
     int edit(Account account,Integer id);
     int delete(Integer id);
//     List<Account> findList(Map<String, Object> queryMap);
//     Integer getTotal(Map<String, Object> queryMap);
//     Account find(Long id);
     Account findByName(String name);
     Account findByNameAndPwd(String name,String upwd);
     List<Account> queryAll();
     List<Account> findByNameLike(String name);
}
